//
//  LXEveryoneWatchingCell.m
//  LXLessDemo
//
//  Created by LX on 16/2/11.
//  Copyright © 2016年 LX. All rights reserved.
//

#import "LXEveryoneWatchingCell.h"
#import "LXTransverseSsrollView.h"

@implementation LXEveryoneWatchingCell

- (void)awakeFromNib {
    // Initialization code
    CGFloat h = (CGRectGetWidth([UIScreen mainScreen].bounds) - (3-1)*1)/3;
    CGRect frame = self.frame;
    frame.size.height = h;
    self.frame = frame;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
-(void)settingEveryoneWatchingViewWithList:(NSArray *)list{
    LXTransverseSsrollView *view = [[LXTransverseSsrollView alloc] initWithFrame:CGRectMake(0, 0, CGRectGetWidth([UIScreen mainScreen].bounds), CGRectGetHeight(self.bounds))];
    [view settingEveryoneWatchingViewWithList:list];
    view.selectBlock = ^(NSString *objId){
        self.selectBlock(objId);
    };
    [self.contentView addSubview:view];
    
}

@end
